<?php echo $this->fetch('member.header.html'); ?>
<style type="text/css">
.address_kuan {padding:10px;overflow:hidden}
.address{height:auto;overflow:hidden;border:1px #ddd solid;border-radius:5px;margin:5px auto 10px;box-shadow:0px 0px 2px #ddd;-webkit-box-shadow:0px 0px 2px #ddd;-moz-box-shadow:0px 0px 2px #ddd;background:#ffffff;}
.address a {text-decoration:none; color:#F00}.address a:hover {text-decoration:underline; color:#00F}
.address-head{line-height:32px;text-indent:10px;background:#fafafa; font-size:14px;border-radius:5px 5px 0px 0px;position:relative; z-index:10;}
.address-head i{display:block;width:12px;height:12px;background:#fafafa;position:absolute;-webkit-transform:rotate(45deg);-moz-transform:rotate(45deg);top:25px;left:26px;border-bottom:1px #eee solid;border-right:1px #eee solid;}
.address-head ul {width:100%; overflow:hidden}
.address-head li{float:left; width:85px; margin-right:13px; text-align:center;overflow:hidden;}
.address .set{position:absolute; z-index:10; top:1px; right:8px;}
.address-address{height:auto;border-top:1px #eee solid;padding:10px 10px 5px 10px;overflow:hidden;font-size:13px; line-height:25px; color:#666;}
.address-address font {color:#999}
</style>
<div class="content_color">
<div class="content">
<?php echo $this->fetch('member.menu.html'); ?>
<div id="right">
<?php echo $this->fetch('member.submenu.html'); ?>
    <div class="wrap">
        <div class="eject_btn" title="新增地址"><b class="ico1" onclick="javascript:window.location.href='index.php?app=my_address&act=add'">新增地址</b></div><br />
        <div class="public table">
<div class="address_kuan">
  
  <?php $_from = $this->_var['addresses']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }; $this->push_vars('', 'address');if (count($_from)):
    foreach ($_from AS $this->_var['address']):
?>
  <div class="address">
    <div class="address-head">
    <ul>
      <li><?php if ($this->_var['address']['default_use'] == 1): ?>默认地址<?php else: ?><a href="index.php?app=my_address&act=set&addr_id=<?php echo $this->_var['address']['addr_id']; ?>"><span>设为默认</span></a><?php endif; ?></li>
      <li><a href="index.php?app=my_address&act=edit&addr_id=<?php echo $this->_var['address']['addr_id']; ?>" class="edit1 float_none">编辑</a></li>
      <li><?php if ($this->_var['address']['default_use'] != 1): ?><a href="javascript:drop_confirm('您确定要删除它吗？\n\n注意：删除后不可恢复！\n\n不想删除请点击取消', 'index.php?app=my_address&amp;act=drop&addr_id=<?php echo $this->_var['address']['addr_id']; ?>');" class="delete float_none">删除</a><?php endif; ?></li>
      <li style="float:right; font-size:12px; color:#369"><?php if ($this->_var['address']['ddl_type'] == 2): ?>发货人地址<?php else: ?>收货人地址<?php endif; ?></li>
    </ul><i></i></div>
    <div class="address-address"><font>姓名：</font><?php echo $this->_var['address']['consignee']; ?>&nbsp;&nbsp;&nbsp;&nbsp;<font>电话：</font><?php echo $this->_var['address']['phone_mob']; ?>&nbsp;&nbsp;&nbsp;&nbsp;<font>身份证号码：</font><?php echo $this->_var['address']['txtidcode']; ?>&nbsp;&nbsp;&nbsp;&nbsp;<?php if ($this->_var['address']['id_photo']): ?>
      <a href="data/files/mall/idphoto/<?php echo $this->_var['address']['id_photo']; ?>" target="_blank" title="已上传身份证照片"><img src="<?php echo $this->res_base . "/" . 'images/member/idpic.gif'; ?>" width="17"/></a>
      <?php else: ?><font style="color:#00F">未上传身份证</font><?php endif; ?>
     <br />
     <font>地址：</font><?php echo str_replace('//', ' ', $this->_var['address']['txt_countrys']); ?> <?php echo $this->_var['address']['address']; ?>&nbsp;&nbsp;&nbsp;&nbsp;<font>邮编：</font><?php echo $this->_var['address']['zipcode']; ?>
    </div>
  </div>
  <?php endforeach; else: ?>
  <p style="font-size:14px">暂无地址记录，马上<a href="index.php?app=my_address&act=add" style="color:#F00">新增地址</a>。</p>
  <?php endif; unset($_from); ?><?php $this->pop_vars();; ?>
</div>
        </div>
    </div>

    <div class="clear"></div>
</div>
<div class="clear"></div>
</div>
</div>
<iframe id='iframe_post' name="iframe_post" frameborder="0" width="0" height="0"></iframe>
<?php echo $this->fetch('footer_member.html'); ?>